commonlibsse_ng\re\p\PlayerCharacter/
player_target_loc.rs1use crate::re::BSCoreTypes::RefHandle;
2use crate::re::NiPoint3::NiPoint3;
3use crate::re::TESObjectCELL::TESObjectCELL;
4use crate::re::TESWorldSpace::TESWorldSpace;
5
6#[repr(C)]
7#[derive(Debug)]
8pub struct PLAYER_TARGET_LOC {
9 world: *mut TESWorldSpace, interior: *mut TESObjectCELL, location: NiPoint3, angle: NiPoint3, arrivalFunc: extern "C" fn(i64), arrivalFuncData: i64, furnitureRef: RefHandle, fastTravelMarker: RefHandle, resetWeather: bool, allowAutoSave: bool, isValid: bool, pad43: u8, pad44: u32, }
23const _: () = {
24 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, world) == 0x00);
25 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, interior) == 0x08);
26 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, location) == 0x10);
27 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, angle) == 0x1c);
28 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, arrivalFunc) == 0x28);
29 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, arrivalFuncData) == 0x30);
30 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, furnitureRef) == 0x38);
31 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, fastTravelMarker) == 0x3C);
32 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, resetWeather) == 0x40);
33 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, allowAutoSave) == 0x41);
34 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, isValid) == 0x42);
35 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, pad43) == 0x43);
36 assert!(core::mem::offset_of!(PLAYER_TARGET_LOC, pad44) == 0x44);
37
38 assert!(core::mem::size_of::<PLAYER_TARGET_LOC>() == 0x48);
39};
40
41#[repr(C)]
42#[derive(Debug)]
43pub struct VR_PLAYER_TARGET_LOC {
44 world: *mut TESWorldSpace, interior: *mut TESObjectCELL, location: NiPoint3, angle: NiPoint3, arrivalFunc: fn(i64), arrivalFuncData: i64, furnitureRef: RefHandle, fastTravelMarker: RefHandle, unk_40: f32, unk44: u8, resetWeather: bool, allowAutoSave: u8, isValid: bool, unk48: u8, unk49: u8, unk4A: u8, unk4B: u8, unk4C: u32, }
63const _: () = assert!(core::mem::size_of::<VR_PLAYER_TARGET_LOC>() == 0x50);